home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.metal;
-
- import com.sun.java.swing.Icon;
- import com.sun.java.swing.plaf.UIResource;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Graphics;
- import java.io.Serializable;
-
- class MetalIconFactory$InternalFrameDefaultMenuIcon implements Icon, UIResource, Serializable {
- Color backgroundColor;
- Color titleColor;
- Color edgeColor;
- Color slashColor;
-
- public void paintIcon(Component c, Graphics g, int x, int y) {
- this.backgroundColor = MetalLookAndFeel.getWindowBackground();
- this.titleColor = MetalLookAndFeel.getPrimaryControl();
- this.edgeColor = MetalLookAndFeel.getPrimaryControlDarkShadow();
- g.translate(x, y);
- g.setColor(this.backgroundColor);
- g.fillRect(0, 0, 16, 16);
- g.setColor(this.titleColor);
- g.fillRect(2, 2, 12, 2);
- g.drawLine(2, 4, 10, 4);
- g.drawLine(2, 5, 9, 5);
- g.setColor(this.edgeColor);
- g.drawRect(0, 0, 15, 15);
- g.drawRect(1, 1, 13, 13);
- g.drawLine(2, 6, 9, 6);
- g.drawLine(10, 5, 10, 5);
- g.drawLine(11, 4, 13, 4);
- g.drawLine(4, 4, 4, 4);
- g.drawLine(7, 4, 7, 4);
- g.setColor(this.backgroundColor);
- g.drawLine(3, 3, 3, 3);
- g.drawLine(6, 3, 6, 3);
- g.translate(-x, -y);
- }
-
- public int getIconWidth() {
- return 16;
- }
-
- public int getIconHeight() {
- return 16;
- }
- }
-